<template>
   
</template>

<script setup>
import { onMounted,getCurrentInstance } from "vue";

const {proxy} = getCurrentInstance(); 

const userId = ref(null);

 onMounted(()=>{
    console.log('用户id', proxy.$route.params.userId);
    //获取用户id
    userId.value = proxy.$route.params.userId
 })

</script>

<style>
</style>